TypeScript(二)----關於null、Undefined、never 類型
1 null 和undefined null是一個只有一個值的特殊類型。表示一個空對象引用。用 typeof 檢測 null 返回是object。 typeof 一個沒有值的變量會返回 unde ...
1 null 和undefined null是一個只有一個值的特殊類型。表示一個空對象引用。用 typeof 檢測 null 返回是object。 typeof 一個沒有值的變量會返回 unde ...